package com.ld.security.server.user.modules.rec.entity;

import com.ld.security.common.core.anno.IdKey;
import com.ld.security.common.mybatis.base.entity.*;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;


import com.ld.security.server.user.modules.rec.constant.RecCardConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.core.base.column.*;
import com.ld.security.common.mybatis.constant.SqlCondition;

@TableName("rec_card")
@ApiModel("推荐卡片")
@Data
public class RecCardEntity  extends SuperEntity
{

  @ApiModelProperty("卡片类型")
  @SqlKey(SqlCondition.eq)
  private RecCardConstant.cardType cardType;

  @ApiModelProperty("推荐编码")
  @SqlKey(SqlCondition.eq)
  private String itemCode;

  @ApiModelProperty("推荐值")
  private Integer wt;






  @ApiModelProperty("内容编号")
  @SqlKey(SqlCondition.eq)
  private String contentId;







  @ApiModelProperty("推荐项编号")
  @SqlKey(SqlCondition.eq)
  private String itemId;




  @ApiModelProperty("画像用户")
  @SqlKey(SqlCondition.eq)
  private String upsUserId;

  @ApiModelProperty("状态")
  @SqlKey(SqlCondition.eq)
  private RecCardConstant.status status;


  @IdKey({"upsUserId","contentId"})
  @Override
  public String getId() {
    return super.getId();
  }
}
